<template>
  <div class="template-wrap">
    <menu-top></menu-top>
    <div class="content">
      <div class="order-detail">
        <div>
          <menu-left ref="left" :href="href"></menu-left>
        </div>
        <el-col>
          <div class="order-wrap right-content" style="margin-top: 30px; margin-bottom: 10px;">
            <el-breadcrumb separator-class="el-icon-arrow-right">
              <el-breadcrumb-item :to="{ path: '/ccOrderHand' }">我的订单</el-breadcrumb-item>
              <el-breadcrumb-item>进行中的订单</el-breadcrumb-item>
            </el-breadcrumb>
            <div class="wrap">
              <rotate-message></rotate-message>
              <div class="wrap-container">
                <div class="container-head">
                    <div class="head-list">
                        <span>订单号：</span>{{detail.orderId}}
                    </div>
                    <div class="head-list">
                        <span>融资企业：</span>{{detail.masterOrder.coreData.companyName}}
                    </div>
                    <div class="head-list">
                        <span>贷款产品：</span>{{detail.masterOrder.productData.productName}}
                    </div>
                    <div class="head-list">
                        <span>融资顾问：</span>{{detail.masterOrder.adviserName || '暂无'}}
                    </div>
                    <div class="head-list">
                        <span>业务经理：</span>{{detail.bankServiceManagerName || '暂无'}}
                    </div>
                    <div @click="()=>{this.infoShow = !this.infoShow}" class="head-arrow">
                        <div class="arrow" :class="infoShow?'rotate':''"></div>
                        <div>{{infoShow?'收起':'展开'}}</div>
                    </div>
                </div>
                <div v-show="infoShow" class="company-info">
                    <!-- <div class="head-info">
                        <div class="head-name"><span>融资企业：</span>摩拜自行车有限公司</div>
                        <div class="btn">详情</div>
                    </div> -->
                    <!-- <div class="info-main">
                        <div class="info-list">
                            <span>资方：</span>包商银行西藏支行
                        </div>
                        <div class="info-list">
                            <span>资方业务经理：</span>XXX
                        </div>
                    </div> -->
                    <div class="info-wrap">
                        <div class="infos-list">
                            <div class="info-list">
                                <div class="info">贷款产品：<span class="name">{{detail.masterOrder.productData.productName}}</span></div>
                                    <div class="info">
                                    <div class="info-item">
                                        贷款额度：<span>{{detail.masterOrder.productData.loanFundMin}}万 ~ {{detail.masterOrder.productData.loanFundMax}}万</span>
                                    </div>
                                    <div class="info-item">
                                        贷款适用地区：<span>{{detail.masterOrder.productData.financingProvinceName || '--'}}{{detail.masterOrder.productData.financingCityName}}</span>
                                    </div>
                                    </div>
                                    <div class="info">
                                    <div class="info-item">
                                        申请者最低成立年限：<span>{{detail.masterOrder.productData.applyMixYear + '年'}}</span>
                                    </div>
                                    <div class="info-item">
                                        贷款年化利率：<span>{{detail.masterOrder.productData.minReportRate + '%/年'}}</span>
                                    </div>
                                    </div>
                                    <div class="info">
                                    <div class="info-item">
                                        贷款最高期限：<span>{{detail.masterOrder.productData.investYearDesc}}</span>
                                    </div>
                                    <div class="info-item">
                                        申请者最低营业收入要求：<span>{{detail.masterOrder.productData.applyMixIncome}}</span>
                                    </div>
                                    </div>
                                    <div class="info">
                                    <div class="info-item">
                                        资金主体：<span>{{detail.masterOrder.productData && detail.masterOrder.productData.fundBodyDatas ? detail.masterOrder.productData.fundBodyDatas.map(item => item.fundBodyDesc).join(',') || '暂无' : '暂无'}}</span>
                                    </div>
                                    <div class="info-item">
                                        申请者盈利要求：<span v-if="detail.masterOrder.productData.applyProfit == 'y'">需盈利</span>
                                        <span v-else>无要求</span>
                                    </div>
                                    </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="order-state">
                    <div class="title1">当前阶段：<span>{{closed || (detail.stepKey == 'dispatch' ? `${configObj.name}评估报告` : detail.stepName)}}</span></div>
                    <div class="step-wrap">
                        <el-steps :active="steps.findIndex(step => step.stepKey == stepKey)" finish-status="success" align-center>
                            <el-step v-for="(step, index) in steps" :key="index" :title="step.stepName"></el-step>
                        </el-steps>
                    </div>  
                    <div class="diligence-info" v-if="(detail.lastCommentDatas || []).length > 0">
                      <div v-for="(data, index) in detail.lastCommentDatas" :key="index">
                        {{data.name}}：<span>{{data.value}}</span>
                      </div>
                    </div>
                    <div class="name" v-show="stepKey == detail.stepKey">{{detail.stepName}} - 信息及材料收集：<div class="btn" v-show="stepKey == detail.stepKey" @click="dialogVisible = true">添加问题</div></div>
                    <div class="info-collect" v-if="detail.stepKey == 'dispatch'">
                        <div class="desc">企业相关资料及报告：</div>
                        <div class="section" @click="linkTo('/companyEdit?id=' + detail.masterOrder.userId)">
                            <div class="left">基础信息</div>
                            <div class="right">查看</div>
                        </div>
                        <div class="section" @click="linkTo('/stockList?id=' + detail.masterOrder.userId)">
                            <div class="left">股权融资信息</div>
                            <div class="right">查看</div>
                        </div>
                        <div class="section" @click="linkTo('/financialInfo_v2/financialReportAnalysis/?id=' + detail.masterOrder.userId)">
                            <div class="left">财务信息</div>
                            <div class="right">查看</div>
                        </div>
                        <div class="section" @click="linkTo('/businessPlan?id=' + detail.masterOrder.userId)">
                            <div class="left">商业计划书</div>
                            <div class="right">查看</div>
                        </div>
                        <div class="section" @click="linkTo('/userLoan?id=' + detail.masterOrder.userId)">
                            <div class="left">贷款情况</div>
                            <div class="right">查看</div>
                        </div>
                        <div class="section" @click="linkTo('/questionList?id=' + detail.masterOrder.userId)">
                            <div class="left">标准问题清单</div>
                            <div class="right">查看</div>
                        </div>
                        <!-- <div class="section" @click="linkTo('/questionList?value&id=')">
                            <div class="left">标准化问题清单</div>
                            <div class="right">前往填写</div>
                        </div> -->
                    </div>
                    <div class="reply-wrap" v-for="(question,index) in detail.questionDatas" :key="index">
                        <div class="reply-item">
                            <div class="reply-list">
                                <div class="list-title">
                                    <div class="title">{{question.creatorName}} 在阶段 【 {{detail.stepName}} 】中创建</div>
                                    <span>类型：</span>{{question.questionTypeDesc}}
                                </div>
                                <div class="tip">{{question.questionContent}}</div>
                                <div class="desc" v-show="stepKey == detail.stepKey"><span>回复及附件：</span>                                   
                                    <el-upload
                                        class="upload"
                                        :action="upLoadUrl"
                                        :show-file-list="false"
                                        :on-success="handleFileSuccess.bind(null, {
                                            questionId: question.id,
                                            orderId: detail.orderId,
                                            stepKey: detail.stepKey
                                        })">
                                        <el-button size="small" type="primary" class="upload-btn">上传附件</el-button>
                                    </el-upload>
                                </div>
                                <div class="reply-input" v-show="stepKey == detail.stepKey">
                                    <el-input  
                                        type="textarea"
                                        resize='none' 
                                        v-model="question.textarea">
                                    </el-input>
                                </div>  
                                <div class="btn" v-show="stepKey == detail.stepKey" @click="handleSubmitAnswer({
                                    questionId: question.id,
                                    orderId: detail.orderId,
                                    stepKey: detail.stepKey,
                                    answer: question.textarea
                                })">提交回复</div>
                                <div class="file-item" v-if="question.answerDatas.filter(item => !!item.attachmentId).length > 0">
                                    <div class="name">附件：</div>
                                    <div class="item">
                                        <div class="list" v-for="(file, index) in question.answerDatas.filter(item => !!item.attachmentId)" :key="index">
                                            <span class="p">{{file.attachmentFile.fileName}}</span>
                                            <span>{{file.answerName}}</span>
                                            <span>{{file.gmtCreated}}</span>
                                            <!-- <span class="el-icon-close"></span> -->
                                            <a :href="file.attachmentFile.fileUrl" :download="file.attachmentFile.fileName"><span class="el-icon-download"></span></a>
                                            <!-- <span>归档</span> -->
                                        </div>
                                    </div>
                                </div>
                                <div class="answer-wrap" v-if="question.answerDatas.filter(item => !item.attachmentId).length > 0">
                                    <div class="label">回复：</div>
                                    <div class="answer-list">
                                        <div class="answer" v-for="(answer, index) in question.answerDatas.filter(item => !item.attachmentId)" :key="index">
                                            <div class="meta">
                                                <span>{{answer.answerName}}</span>
                                                <span>{{answer.gmtCreated}}</span>
                                                <span></span>
                                            </div>
                                            <div class="answer-content">{{answer.answer}}</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="rotate-wrap" v-show="stepKey == detail.stepKey && !closed">
                        <div class="title">流转</div>
                        <el-radio-group class="radio-wrap" v-model="rotate">
                            <el-radio v-for="radio in radios" @change="handleRadioChange(radio)"
                                :key="radio.key"
                                :label="radio.key">
                                {{radio.name}}
                            </el-radio>
                        </el-radio-group>
                        <div class="diligence-info" style="padding-left: 0" v-show="items.length > 0">
                            <div v-for="(item, index) in items" :key="index">
                              <label>{{item.name}}：</label>
                              <el-date-picker
                                v-if="item.type == 'date'"
                                style="width:210px; display: inline-block"
                                v-model="itemsParams[item.key]"
                                type="datetime"
                                placeholder="选择日期时间">
                              </el-date-picker>
                              <el-input v-else-if="item.type == 'address'" 
                                v-model="itemsParams[item.key]" 
                                style="width:210px; display: inline-block">
                              </el-input>
                            </div>
                        </div>
                        <div class="desc">
                            <label>备注：</label> 
                            <el-input
                              style="width: 600px"
                              type="textarea"
                              :autosize="{ minRows: 3, maxRows: 10}"
                              v-model="memo">
                            </el-input>
                        </div>
                        <div class="btn" @click="handleRotate({
                            orderId: detail.orderId,
                            stepKey: detail.stepKey
                        })">提交</div>
                    </div>
                </div>
              </div>
            </div>
          </div>
        </el-col>
      </div>
    </div>
    <el-dialog
        custom-class="branchDialog"
        title="添加问题"
        :visible.sync="dialogVisible"
        width="30%">
      <div class="whiteSpace mb30">
        <span>问题类型：</span>
        <el-cascader
            style="width: 300px"
            :props="props"
            :options="questionTypeList"
            v-model="questionType">
        </el-cascader>
      </div>
      <div class="whiteSpace mb30">
          <span>问题内容：</span>
          <el-input
              type="textarea"
              :autosize="{ minRows: 2, maxRows: 4}"
              placeholder="请输入内容"
              v-model="questionContent"
              style="width: 300px">
          </el-input>
      </div>
      <div style="text-align: center">
          <el-button @click="dialogVisible = false">取 消</el-button>
          <el-button class="btn" type="primary" @click="handleAddQuestion({
              orderId: detail.orderId,
              stepKey: detail.stepKey,
              answerUserType: 'company'
          })">提 交</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import VueRouter from "vue-router";
import CONSTANT from "../../../constant/constant.js";
import { requestAjax } from "../../../common.js";
import common from "../../../common.js";
import config from "../../../config/config.js";
let uploadFileParams;
let stepLen;

export default {
  data() {
    return {
      configObj:'',
      stepKey: "",
      memo: "",
      diligenceAddress: "",
      diligenceTime: "",
      rotate: "1",
      props: {
        label: "value",
        value: "key",
        children: "childs"
      },
      questionTypeList: [],
      questionType: [],
      dialogVisible: false,
      href: "",
      infoShow: false,
      questionContent: "",
      //   active: -1,
      steps: [],
      detail: {
        masterOrder: {
          coreData: {},
          productData: {}
        }
      },
      upLoadUrl: "",
      radios: [],
      radio: "",
      items: [],
      itemsParams: {},
      closed: ''
    };
  },
  computed: {
    active() {
      const { stepKey } = this.detail;
      return this.steps.findIndex(step => step.stepKey == stepKey);
    }
  },
  created() {    
    let arr = location.hostname.split('.');
    let urlName = arr[0] == 'www'?arr[1]:arr[0];
    this.configObj = config.urlObjs[urlName];
    Promise.all([this.loadStepList(), this.loadOrderDetail()])
    .then(() => {
      if (this.steps.every(step => step.stepKey != this.detail.stepKey)) {
        this.stepKey = this.detail.lastStepKey
        this.closed = this.detail.stepName
      } else {
        this.stepKey = this.detail.stepKey
      }
    })
    this.loadDictionary();
    let sessionId = common.getCookie("sessionId");
    this.upLoadUrl = CONSTANT.URL.BASE.ADMINUPLOAD + "?sessionId=" + sessionId;
  },
  updated() {
    let steps = document.querySelectorAll(
      ".el-step__head.is-process,.el-step__head.is-success"
    );
    const len = steps.length;
    if (stepLen == len) return;
    stepLen = len;
    steps = Array.from(steps);
    steps.forEach((step, index) => {
      step.addEventListener("click", e => {
        const active = document.querySelector(".el-step__head.active");
        active && active.classList.remove("active");
        step.classList.add("active");
        const { stepKey } = this.steps[index];
        this.loadOrderDetail(stepKey);
      });
    });
    steps[len - 1] && steps[len - 1].classList.add("active");
  },
  components: {
    "menu-top": () => import("../../common/Menu-Top"),
    "menu-left": () => import("../../common/Menu-Left"),
    "rotate-message": () => import("../../common/rotate-message")
  },
  watch: {
    $route(to, from) {
      // this.$refs.left.activePath()
    }
  },
  methods: {
    linkTo(path) {
      this.$router.push(path);
    },
    loadStepList() {
      return new Promise(r => {
        const url = `${CONSTANT.URL.SYSTEM.STEPLIST}`;
        requestAjax(url, {}, {}, ({ status, data }) => {
          if (status == 200) {
            const includes = [];
            data.bussData.splice(0, 3);
            data.bussData[0].stepName = `${this.configObj.name}评估报告`;
            this.steps = data.bussData;
            r()
          }
        });
      })
    },
    handleAddQuestion(params) {
      const { questionType, questionContent } = this;
      if (
        !questionType ||
        !questionType[0] ||
        !questionType[1] ||
        !questionContent
      ) {
        return this.$message({
          type: "warning",
          message: "请添加问题类型或问题内容"
        });
      }
      const url = `${CONSTANT.URL.SYSTEM.ADDQUESTION}`;
      params = {
        ...params,
        questionType: questionType[0],
        questionSubType: questionType[1],
        questionContent
      };
      requestAjax(url, JSON.stringify(params), {}, ({ data, status, msg }) => {
        if (status == 200) {
          this.dialogVisible = false;
          this.loadOrderDetail(params.stepKey);
          this.$message({
            type: "success",
            message: "添加问题成功"
          });
        } else {
          msg
          ? this.$message({
              type: "warning",
              message: res.msg
            })
          : this.$message.error("发生了未知错误");
        }
      });
    },
    loadOrderDetail(stepKey) {
      return new Promise(r => {
        const id = this.$route.params.id;
        if (!id) return;
        const url = `${CONSTANT.URL.SYSTEM.BANKORDERDETAIL}`;
        const params = {
          orderId: id
        };
        if (stepKey) params.stepKey = stepKey;
        requestAjax(url, JSON.stringify(params), {}, ({ status, data }) => {
          if (status == 200) {
            this.detail = data.bussData;
            this.detail.questionDatas.forEach(question => {
              question.textarea = ''
            })
            this.loadRadios(data.bussData.stepKey, data.bussData.orderId);
            r()
          }
        })
      })
    },
    loadDictionary() {
      const url = `${CONSTANT.URL.SYSTEM.LOADDICTIONARY}`;
      const params = {
        codeType: "first_file_type"
      };
      requestAjax(url, "{}", params, ({ status, data }) => {
        if (status == 200) {
          this.questionTypeList = data.bussData;
        }
      });
    },
    handleSubmitAnswer(params) {
      if (!params.answer) return
      this.submitAnswer(params)
    },
    handleFileSuccess(params, res, file) {
      if (res.status == 200) {
        const { fileId } = res.data.bussData;
        params.attachmentId = fileId;
        this.submitAnswer(params);
      }
    },
    submitAnswer({ questionId, orderId, attachmentId, answer, stepKey }) {
      const url = CONSTANT.URL.SYSTEM.SUBMITANSWER;
      const params = {
        questionId,
        orderId,
        stepKey
      };
      if (answer) {
        params.answer = answer;
      } else if (attachmentId) {
        params.attachmentId = attachmentId;
      } else {
        return;
      }
      requestAjax(url, JSON.stringify(params), {}, res => {
        if (res.status == 200) {
          this.loadOrderDetail(params.stepKey);
          if (answer) {
            this.textarea3 = "";
            this.$message({
              type: "success",
              message: "回复成功"
            });
          } else {
            this.$message({
              type: "success",
              message: "上传附件成功"
            });
          }
        } else {
          res.msg
          ? this.$message({
              type: "warning",
              message: res.msg
            })
          : this.$message.error("发生了未知错误");
        }
      });
    },
    loadRadios(stepKey, orderId) {
      const url = CONSTANT.URL.SYSTEM.RADIOS;
      const params = {
        stepKey,
        orderId
      };
      requestAjax(url, JSON.stringify(params), {}, ({ status, data }) => {
        if (status == 200) {
          this.radios = data.bussData.stepList;
          this.items = {}
          this.rotate = ''
        }
      });
    },
    handleRotate(params) {
      const url = CONSTANT.URL.SYSTEM.ROTATE;
      const { rotate, memo, itemsParams, detail } = this;
      if (rotate) {
        const values = Object.values(itemsParams)
        if (!values.every(value => !!value)) return this.$message({ type: 'warning', message: '请完善你的输入信息' })
        params.status = rotate;
      } else {
        return
      }
      if (memo) {
        params.memo = memo;
      }
      params = { ...params, ...itemsParams }
      requestAjax(url, JSON.stringify(params), {}, ({ status, data, msg }) => {
        if (status == 200) {
          this.$message({
            type: "状态流转成功"
          });
          window.location.reload();
        } else {
          msg
          ? this.$message.error(msg)
          : this.$message.error("意料之外的错误")
        }
      });
    },
    handleRadioChange(radio) {
      const items = radio.items
      if (!items) {
        this.items = {}
        return
      }
      this.items = radio.items
      const params = {}
      radio.items.forEach(item => {
        params[item.key] = ''
      })
      this.itemsParams = params
    }
  }
};
</script>

<style  lang="scss">
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
}

.btn {
  background: #ed7018;
  border-color: #ed7018;
  &:hover {
    background-color: #ed9000;
    transition: all 0.2s linear;
  }
}

.mb30 {
  margin-bottom: 30px;
}

.mb18 {
  margin-bottom: 18px;
}

.whiteSpace {
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.content {
  min-height: 100%;
  background-color: #f5f5f5;
  width: 81.3%;
  float: right;
}

.content-wrap {
  overflow: hidden;
}

.el-step__title {
  font-size: 14px !important;
}

.el-step__icon:hover {
  transform: scale(1.1, 1.1);
}

.el-step__head.active::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -8px;
  top: 32px;
  width: 0;
  height: 0;
  border: 8px solid #999999;
  border-radius: 2px;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotateZ(-135deg);
}

.order-detail {
  padding-top: 29px;
  .wrap {
    background-color: #f5f5f5;
    .title-head {
      height: 50px;
      line-height: 50px;
      background-color: #fff;
      margin-top: 18px;
      padding-left: 20px;
      font-size: 14px;
      color: #666;
      span {
        color: #0087dc;
        cursor: pointer;
      }
    }
    .wrap-container {
      padding: 0px 60px 33px 29px;
      background-color: #fff;
      margin-top: 20px;

      .container-head {
        position: relative;
        overflow: hidden;
        height: 67px;
        line-height: 67px;
        padding-bottom: 10px;
        border-bottom: 1px solid #d1d1d1;
        .head-list {
          float: left;
          font-size: 16px;
          color: #000;
          margin-right: 30px;
          span {
            color: #666;
          }
        }
        .head-arrow {
          position: absolute;
          right: 0%;
          cursor: pointer;
          top: 0;
          color: #000;
          font-size: 16px;
          height: 67px;
          line-height: 67px;
          div {
            float: left;
          }
          .arrow {
            width: 22px;
            height: 12px;
            background-image: url(../../../images/arrow.png);
            background-size: 100%;
            margin-top: 28px;
            margin-right: 9px;
            &.rotate {
              transform: rotate(180deg);
              -webkit-transform: rotate(180deg);
            }
          }
        }
      }

      .company-info {
        font-size: 18px;
        color: #333;
        overflow: hidden;
        span {
          color: #666;
        }
        .head-info {
          overflow: hidden;
          height: 78px;
          line-height: 78px;
          border-bottom: 1px solid #d1d1d1;
        }
        .head-name {
          float: left;
        }
        .btn {
          width: 100px;
          height: 40px;
          border-radius: 4px;
          -webkit-border-radius: 4px;
          background-color: #ed7018;
          font-size: 18px;
          color: #fff;
          text-align: center;
          line-height: 40px;
          cursor: pointer;
          float: right;
          margin-top: 20px;
          &:hover {
            background-color: #ed9000;
            transition: all 0.2s linear;
          }
        }
        .info-main {
          position: relative;
          overflow: hidden;
          height: 79px;
          line-height: 79px;
          border-bottom: 1px solid #d1d1d1;
          .info-list {
            float: left;
            font-size: 16px;
            color: #000;
            margin-right: 8%;
            span {
              color: #666;
            }
          }
        }
        .info-wrap {
          background-color: #fff;
          padding: 0 0 29px 0;
          border-bottom: 1px solid #d1d1d1;
          overflow: hidden;
          .info-title {
            width: 35%;
            font-size: 16px;
            color: #333;
            font-weight: bold;
          }
          .infos-list {
            overflow: hidden;
          }
          .info-list {
            width: 80%;
            float: left;
            font-size: 16px;
            color: #666;
            span.name {
              color: #ed7018;
            }
            .info {
              overflow: hidden;
              margin-top: 25px;
              .info-item {
                width: 35.8%;
                float: left;
                &:nth-child(2) {
                  float: left;
                  margin-left: 20%;
                }
              }
              span {
                color: #111;
                // font-weight: bold;
              }
              .name {
                color: #ed7018;
              }
            }
          }
        }
      }

      .order-state {
        padding-top: 30px;
        .title1 {
          font-size: 18px;
          color: #000;
          span {
            color: #ed7018;
          }
        }
        .diligence-info {
            line-height: 60px;
            background-color: #f9f9f9;
            font-size: 16px;
            margin-bottom: 20px;
            color: #999999;
            padding-left: 20px;
          div {
            display: inline;
            span {
              color: #000000;
              margin-right: 60px;
            }
          }
        }
        .step-wrap {
          margin-left: -30px;
          margin-right: -30px;
          .el-step__title {
            font-size: 13px !important;
          }
          .el-steps {
            .el-step:nth-child(1) {
              .el-step__main {
                margin-left: 30px;
              }
            }
            .el-step:nth-last-child(1) {
              .el-step__main {
                margin-right: 30px;
              }
            }
          }
        }
        /*
        .step-wrap {
          background-color: #fff;
          padding-bottom: 20px;
          border-bottom: 1px solid #d1d1d1;
          .el-steps--horizontal {
            width: 100%;
            margin: 0px auto 0;
            padding-top: 40px;
            .is-success {
              .el-step__icon.is-text {
                color: #e1e1e1;
                background-color: #ed7018;
                border: 1px solid #ed7018;
                .el-step__icon-inner {
                  color: #fff;
                }
              }
            }
            .el-step__head.is-success {
              .el-step__line {
                background-color: #ed7018;
              }
            }
            .el-step__title.is-process {
              color: #ed7018;
            }
            .is-process {
              .el-step__icon.is-text {
                color: #e1e1e1;
                background-color: #ed7018;
                border: 1px solid #ed7018;
                .el-step__icon-inner {
                  color: #fff;
                }
              }
            }
            .el-step__title.is-wait {
              color: #999;
            }
            .el-step__icon.is-text {
              color: #e1e1e1;
              background-color: #e1e1e1;
              border: 1px solid #e1e1e1;
              .el-step__icon-inner {
                color: #fff;
              }
            }
          }
        }
        */
        .name {
          font-size: 90%;
          margin-top: 20px;
          margin-bottom: 20px;
          .btn {
            display: inline-block;
            border-radius: 4px;
            background-color: #ed7018;
            font-size: 12px;
            color: #fff;
            text-align: center;
            line-height: 30px;
            padding-left: 15px;
            padding-right: 15px;
            cursor: pointer;
            &:hover {
              background-color: #ed9000;
              transition: all 0.2s linear;
            }
          }
        }
        .info-collect {
          margin-top: 20px;
          background-color: #f2f2f2;
          padding: 10px;
          .desc {
            margin-top: 10px;
            margin-bottom: 10px;
            font-size: 80%;
            color: #999999;
          }
          .section {
            position: relative;
            cursor: pointer;
            margin-top: 5px;
            font-size: 80%;
            .right {
              position: absolute;
              left: 150px;
              top: 0;
              color: #999999;
            }
          }
        }
        .reply-wrap {
          color: #000;
          .name {
            margin-top: 0;
            font-size: 18px;
          }
          .reply-item {
            .reply-list {
              margin-top: 0;
              margin-bottom: 20px;
              padding: 19px 1.5% 28px;
              width: 97%;
              background-color: #f8f8f8;
              .list-title {
                position: relative;
                text-align: center;
                font-size: 14px;
                color: #000;
                span {
                  color: #666;
                }
                .title {
                  position: absolute;
                  left: 0;
                  color: #666;
                }
              }
              .tip {
                margin-top: 19px;
                color: #333;
                font-size: 16px;
              }
              .desc {
                font-size: 14px;
                color: #000;
                margin-top: 18px;
                span {
                  color: #666;
                }
                .upload {
                  display: inline-block;
                  .upload-btn {
                    span {
                      color: #ffffff;
                    }
                  }
                }
              }
              .upload {
                color: #ffffff;
              }
              .reply-input {
                margin-top: 11px;
                .el-textarea {
                  textarea {
                    height: 113px !important;
                  }
                }
              }
              .btn {
                width: 120px;
                height: 40px;
                border-radius: 4px;
                -webkit-border-radius: 4px;
                background-color: #ed7018;
                font-size: 18px;
                color: #fff;
                text-align: center;
                line-height: 40px;
                cursor: pointer;
                margin-top: 20px;
                &:hover {
                  background-color: #ed9000;
                  transition: all 0.2s linear;
                }
              }
              .file-item {
                font-size: 14px;
                overflow: hidden;
                margin-top: 21px;
                .name {
                  float: left;
                  font-size: 14px;
                  color: #999999;
                }
                .item {
                  float: left;
                  width: 80%;
                  .list:last-child {
                    margin-bottom: none;
                  }
                  .list {
                    margin-bottom: 18px;
                    span {
                      color: #666;
                      margin-right: 3%;
                      &.p {
                        color: #999999;
                      }
                    }
                  }
                }
              }
            }
          }
        }
        .rotate-wrap {
          background-color: #f9f9f9;
          padding: 20px;
          .title {
            padding-bottom: 10px;
            border-bottom: 1px solid #d1d1d1;
            margin-bottom: 20px;
          }
          .diligence-info {
            display: flex;
            margin-bottom: 10px;
            div {
              label {
                margin-right: 10px;
                line-height: 38px;
                font-size: 14px;
              }
              * {
                margin-right: 30px;
              }
            }
          }
          .desc {
            margin-top: 20px;
            display: flex;
            label {
              line-height: 26px;
              font-size: 14px;
              margin-right: 10px;
            }
          }
          .radio-wrap {
            margin-top: 5px;
            margin-bottom: 15px;
            &::before {
              content: "流转：";
              font-size: 14px;
              margin-right: 10px;
            }
          }
          .btn {
            margin-top: 10px;
            margin-left: 50px;
            display: inline-block;
            font-size: 12px;
            line-height: 30px;
            padding-left: 20px;
            padding-right: 20px;
            border-radius: 4px;
            color: #ffffff;
          }
        }
        .answer-wrap {
          margin-top: 21px;
          .label {
            font-size: 14px;
            color: #999999;
          }
          .answer {
            border-radius: 10px;
            background-color: #f2f2f2;
            margin-left: 30px;
            padding-left: 10px;
            padding-bottom: 5px;
            margin-top: 10px;
            .meta {
              span {
                font-size: 14px;
                margin-right: 30px;
                color: #999999;
              }
            }
            .answer-content {
              margin-top: 5px;
              font-size: 16px;
            }
          }
        }
      }
    }
  }
}

a {
  text-decoration: none;
}
</style>